import pytest
from Tools.tools import log,fasong
import os, time

t = time.strftime('%Y%m%d%H%M%S', time.localtime())
if __name__ == '__main__':
    log()
    pytest.main(['./testcase/testcase.py', '-s', '--alluredir=./reports/allureport', '--html=./reports/baogao.html'])
    os.system('allure generate ./reports/allureport -o ./reports/allure-html -clean')
    fasong(['reports/allure-html/index.html', 'reports/baogao.html', 'log.log'])

